package com.wc.alorithm_luogu.P5705;

import java.util.Scanner;

/**
 * https://www.luogu.com.cn/problem/P5705
 * 数字反转
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        char[] ss = s.toCharArray();
        int len = ss.length - 1;
        int mid = ss.length/2;
        char tmp;
        for (int i = 0; i < mid; i++) {
            tmp = ss[i];
            ss[i] = ss[len - i];
            ss[len - i] = tmp;
        }
        System.out.println(new String(ss));
    }
}
